/************************
*Date: 14.07.2011
*Year: 2011
*Project: Thread_Exercises
*File: PhilosophenTest.java
*************************
*Description: 
*************************
*Author: Viktor
*TODO
*************************
*******--History--*******
*Version:
*Changes:
*Author:
*************************/
package eating_philosoph;

/**
 * @author Viktor
 *
 */
public class PhilosophenTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Gabel g15 = new Gabel();
		Gabel g12 = new Gabel();
		Gabel g23 = new Gabel();
		Gabel g34 = new Gabel();
		Gabel g45 = new Gabel();
		
		Philosoph p1 = new Philosoph("p1", g15, g12);
		Philosoph p2 = new Philosoph("p2", g12, g23);
		Philosoph p3 = new Philosoph("p3", g23, g34);
		Philosoph p4 = new Philosoph("p4", g34, g45);
		Philosoph p5 = new Philosoph("p5", g15, g45);
		
		p1.start();
		p2.start();
		p3.start();
		p4.start();
		p5.start();
	}

}
